from flask import Flask, render_template, request, redirect
import json
app = Flask(__name__)
from service import redisService

# 添加数据到缓存
@app.route('/redis/', methods=['PUT'])
def insert_redis(id, word):
    redisService.insert_redis(id, word)
    return "添加数据到缓存成功!"